﻿<Application
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"       
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:System="clr-namespace:System;assembly=mscorlib" 
    xmlns:main="clr-namespace:MusicAlarm7.Resources;assembly=DataModel"
    xmlns:data="clr-namespace:MusicAlarm7.DataModel;assembly=DataModel"
    x:Class="MusicAlarm7.App"
    >

    <!--应用程序资源-->
    <Application.Resources>
        <main:LocalizedStrings x:Key="LocalizedStrings" />
        <data:AlarmViewModel x:Key="AlarmViewModel" />
    </Application.Resources>

    <Application.ApplicationLifetimeObjects>
        <!--处理应用程序的生存期事件所需的对象-->
        <shell:PhoneApplicationService 
            Launching="Application_Launching" Closing="Application_Closing" 
            Activated="Application_Activated" Deactivated="Application_Deactivated"/>
    </Application.ApplicationLifetimeObjects>

</Application>